package com.hqx.oop.obj;

public class Test {
    public static void test() {
        char[] arr = new char[] { 'a', 'b', 'c' };
        System.out.println(arr);//
        int[] arr1 = new int[] { 1, 2, 3 };
        System.out.println(arr1);//
        double[] arr2 = new double[] { 1.1, 2.2, 3.3 };
        System.out.println(arr2);//
    }

    public static void main(String[] args) {
//        int i = 15;
//        Integer integer = new Integer(i);
//        System.out.println(integer == i);
//        System.out.println(integer.equals(i));
//        System.out.println(integer);
//        test();
        Object o1 = true ? new Integer(1) : new Double(2.0);
        System.out.println(o1);
        Object o2;
        if(true) {
            o2 = new Integer(1);
        } else {
            o2 = new Double(2.0);
        }
        System.out.println(o2);
    }
}
